package com.yx.changdao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yx.changdao.common.data.Result;
import com.yx.changdao.common.entity.CommunityResident;
import com.yx.changdao.common.exception.AlertException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;


/**
 * @Description: <br/>
 * 居民信息表
 * <p>
 * <br/>
 * @Auther: flexible
 * @create 2020/04/02 13:47
 */
public interface CommunityResidentService extends IService<CommunityResident> {
    /**
     * 安置
     */
    @Transactional(rollbackFor = {Exception.class})
    Boolean placement(CommunityResident residentId,Integer buildDetailId) throws AlertException;

    /**
     * 批量导入居民
     */
    Map<String,Object> checkAndSave(MultipartFile communityResident) throws AlertException;
}
